package com.ule.merchant.order.mon.service.controller;

import com.ule.merchant.order.mon.service.entity.LgsOrder;
import com.ule.merchant.order.mon.service.response.ResultData;
import com.ule.merchant.order.mon.service.service.LgsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private LgsOrderService lgsOrderService;

    @RequestMapping("/selectOne/{expressNo}")
    public ResultData<LgsOrder> selectOne(@PathVariable String expressNo) {
        LgsOrder lgsOrder = lgsOrderService.selectOne(expressNo);
        return ResultData.success(lgsOrder);
    }

}
